package com.javacoo.lock.starter;

import java.util.Optional;

import com.javacoo.lock.client.api.Lock;

/**
 * 锁接口对象持有者
 * <li></li>
 *
 * @author: duanyong
 * @since: 2021/3/16 8:56
 */
public class LockHolder {
    /** 锁对象*/
    static Lock lock;

    public static Optional<Lock> getLock() {
        return Optional.ofNullable(lock);
    }
}
